(ns lastfm-music-recommendation.test.datomic.users
  (:use [clojure.test])
  (:use [lastfm-music-recommendation.db.datomic]))

(deftest user-registration
  (is (= 4 (count (register-user "testuser" "testpass"))))
  (is (= nil (register-user "testuser" "testpass"))))

(deftest user-login
  (is (= true (login "testuser" "testpass")))
  (is (= false (login "usertest" "userpass"))))

(deftest user-remove
  (is (= 4 (count (remove-user "testuser" "testpass")))))

